package com.aiit.carinsurance2.dao;

import com.aiit.carinsurance2.pojo.Pay;
import com.aiit.carinsurance2.pojo.Toubaodan;
import com.aiit.carinsurance2.pojo.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hfy
 * @since 2022-05-06
 */
@Mapper
public interface UserDao {

    User queryByLoginnameAndPassword(String loginname, String password);

    int regist(User user);

    int updateuserinfo(User user);

    User querybyid(int id);

    User querybyloginname(String loginname);

    Toubaodan querybyuid(Integer uid);

    int insert(Pay pay);

    Pay querypayinfo(Integer uid);
}
